package com.wyb.controller;

import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;



/**
 * <p>User: 
 * <p>Date: 
 * <p>Version: 1.0
 */
@RestController
public class TestController {
	private final Logger logger = Logger.getLogger(getClass());
	 @RequestMapping("/hello")
	    public String hello(@RequestParam String name) {
		 logger.info("test="+name);
	        return "你好，" + name;
	    }

}
